//
//  XmlInfo.m
//  OrderOnline
//
//  Created by YAPPA_3 on 11/30/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "XmlInfo.h"

@implementation MenuFood
@synthesize m_noMenu;
@synthesize m_listFood;

- (id) init
{
	if (self = [super init]) {
		m_noMenu = [[NSString alloc] init];
		m_listFood = [[NSMutableArray alloc] init];
	}
	return self;
}

- (void) dealloc
{
	[super dealloc];
	[m_noMenu release];
	[m_listFood release];
}

@end

@implementation Food
@synthesize m_productID;
@synthesize m_linkImage;
@synthesize m_title;
@synthesize m_discount;
@synthesize m_price;
@synthesize m_priceDiscount;
@synthesize m_type;

- (id) init
{
	if (self = [super init]) {
		m_productID = [[NSMutableString alloc] init];
		m_linkImage = [[NSMutableString alloc] init];
		m_title		= [[NSMutableString alloc] init];
		m_discount	= [[NSMutableString alloc] init];
		m_type		= [[NSString alloc] init]; 
	}
	
	return self;
}

- (void) dealloc
{
	[super dealloc];
	[m_discount release];
	[m_title release];
	[m_productID release];
	[m_linkImage release];
	[m_type release];

}

@end

@implementation Order
@synthesize m_noOrder;
@synthesize m_listFoodOrder;
@synthesize m_total;
@synthesize m_date;
- (id) init
{
	if (self = [super init]) {
		m_noOrder = [[NSString alloc] init];
		m_date = [[NSString alloc] init];
		m_listFoodOrder = [[NSMutableArray alloc] init];
	}
	return self;
}

- (void) dealloc
{
	[super dealloc];
	[m_noOrder release];
	[m_listFoodOrder release];
	[m_date release];
}

@end

@implementation FoodOrder
@synthesize m_productID;
@synthesize m_linkImage;
@synthesize m_title;
@synthesize m_price;
@synthesize m_count;
@synthesize m_type;

- (id) init
{
	if (self = [super init]) {
		m_productID = [[NSMutableString alloc] init];
		m_linkImage = [[NSMutableString alloc] init];
		m_title		= [[NSMutableString alloc] init];		
		m_type		= [[NSString alloc] init]; 
	}
	
	return self;
}

- (void) dealloc
{
	[super dealloc];	
	[m_title release];
	[m_productID release];
	[m_linkImage release];
	[m_type release];
	
}

@end


@implementation XmlInfo

@end
